
import request from '@/utils/request'

// 新ceshi
export const importTemplateApi = () => {
    return request({
        url: '/profile/index/importTemplate',
        method: 'get',
    })
}


// 新增测量单  
export const addMeasurement = (data) => {
    return request({
        url: '/system/measurement/add',
        method: 'post',
        data
    })
}
// 修改测量单  
export const editMeasurement = (data) => {
    return request({
        url: '/system/measurement/edit',
        method: 'post',
        data
    })
}
// 查询测量单列表   designType 待设计 待审核 审核通过 
export const listMeasurement = (data) => {
    return request({
        url: '/system/measurement/list',
        method: 'get',
        params: data
    })
}
export const designListMeasurement = (data) => {
    return request({
        url: '/system/measurement/designList',
        method: 'get',
        params: data
    })
}
// 新增核算单列表   
export const costingAdd = (data) => {
    return request({
        url: '/system/costing/add',
        method: 'post',
        data
    })
}
// 查询核算单列表   
export const costingList = (data) => {
    return request({
        url: '/system/costing/list',
        method: 'get',
        params: data
    })
}
// 查询核算单详情  
export const costingListGetInfo = (data) => {
    return request({
        url: '/system/costing/getInfo',
        method: 'get',
        params: data
    })
}
// 修改核算单详情  
export const costingListEdit = (data) => {
    return request({
        url: '/system/costing/edit',
        method: 'post',
        data
    })
}
// 查询测量单列表详情   （id）
export const listMeasurementgetInfo = (data) => {
    return request({
        url: '/system/measurement/getInfo',
        method: 'get',
        params: data
    })
}

// 提交设计图
export const designMeasurement = (data) => {
    return request({
        url: '/system/measurement/design',
        method: 'post',
        data
    })
}
// 审核设计
export const designCheckMeasurement = (data) => {
    return request({
        url: '/system/measurement/designCheck',
        method: 'get',
        params:data
    })
}

// 接单
export const jiedanApi = (data) => {
    return request({
        url: '/system/measurement/jiedan',
        method: 'post',
        data
    })
}
// 派单
export const paidanApi = (data) => {
    return request({
        url: '/system/measurement/paidan',
        method: 'post',
        data
    })
}